package com.tjhk.lock.controller;

import com.tjhk.lock.service.TestService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping
public class TestController {

    @Resource
    private TestService testService;

    @GetMapping
    String test(){
        testService.test();
        return "success";
    }
}
